package com.wee.cronos.client.core.presenter;

 import com.google.web.bindery.event.shared.EventBus;
import com.google.gwt.event.shared.GwtEvent.Type;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.annotations.ContentSlot;
import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
import com.gwtplatform.mvp.client.proxy.Proxy;
import com.gwtplatform.mvp.client.proxy.RevealContentEvent;
import com.gwtplatform.mvp.client.proxy.RevealContentHandler;

public class ProjectManagementPresenter extends Presenter<ProjectManagementPresenter.ProjectManagementView, ProjectManagementPresenter.ProjectManagementProxy>
{
	@ContentSlot
	public static final Type<RevealContentHandler<?>> TYPE_RevealProjectExplorer = new Type<RevealContentHandler<?>>();
	
	@ContentSlot
	public static final Type<RevealContentHandler<?>> TYPE_RevealFolderExplorer = new Type<RevealContentHandler<?>>();
	
	@ProxyCodeSplit
	public interface ProjectManagementProxy extends Proxy<ProjectManagementPresenter> {}
	
	public interface ProjectManagementView extends View {}
	
	@Inject
	public ProjectManagementPresenter(final EventBus eventBus, final ProjectManagementView view, final ProjectManagementProxy proxy) 
	{
		super(eventBus, view, proxy);
	}
	
	@Override
	protected void revealInParent()
	{
		RevealContentEvent.fire(this, WorkspacePresenter.TYPE_RevealProjectMagenent, this);
	}
}